<h1>Listing outlines</h1>

<table>
  <tr>
    <th>User</th>
    <th>Todo</th>
    <th>First child</th>
    <th>Next sibling</th>
  </tr>

<% for outline in @outlines %>
  <tr>
    <td><%=h outline.user_id %></td>
    <td><%=h outline.todo_id %></td>
    <td><%=h outline.first_child %></td>
    <td><%=h outline.next_sibling %></td>
    <td><%= link_to 'Show', outline %></td>
    <td><%= link_to 'Edit', edit_outline_path(outline) %></td>
    <td><%= link_to 'Destroy', outline, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New outline', new_outline_path %>
